


<h1 style="margin:50px 0; text-align: center;">用户管理系统</h1>

<p style="margin-left: 650px;">
    <a href="javascript:void(0);" onclick="if(confirm('您确定要退出吗')) location.href='{:url(\'index/base/quit\')}'">退出登录</a>
    <a href="{:url('index/index/reg')}">添加</a>
</p>
<table class="table table-bordered" style="width:600px;margin:0 auto;">
    <thead>
        <tr align="center">
            <td>用户id:</td>
            <td>用户名称</td>
            <td>用户账号</td>
            <td>添加时间</td>
            <td>操作</td>
        </tr>
    </thead>
    <tbody>
        {foreach $data as $key=>$v}
            <tr align="center">
                <td>{++$key}</td>
                <td>{$v.username}</td>
                <td>{$v.usernum}</td>
                <td>{$v.create_time}</td>
                <td>
                    <a href="{:url('index/index/edit',['id'=>$v.id])}">修改</a>
                    <a href="javascript:void(0);" onclick="confirm('你确定删除吗');location.href='{:url(\'index/index/delete\',[\'id\'=>$v.id])}'">删除</a>
                </td>
            </tr>
        {/foreach}
    </tbody>

</table>